package com.wxf.pojo;

import java.util.ArrayList;
import java.util.List;

public class BehospitalExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BehospitalExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPatientIdIsNull() {
            addCriterion("patientId is null");
            return (Criteria) this;
        }

        public Criteria andPatientIdIsNotNull() {
            addCriterion("patientId is not null");
            return (Criteria) this;
        }

        public Criteria andPatientIdEqualTo(Integer value) {
            addCriterion("patientId =", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotEqualTo(Integer value) {
            addCriterion("patientId <>", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdGreaterThan(Integer value) {
            addCriterion("patientId >", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("patientId >=", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdLessThan(Integer value) {
            addCriterion("patientId <", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdLessThanOrEqualTo(Integer value) {
            addCriterion("patientId <=", value, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdIn(List<Integer> values) {
            addCriterion("patientId in", values, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotIn(List<Integer> values) {
            addCriterion("patientId not in", values, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdBetween(Integer value1, Integer value2) {
            addCriterion("patientId between", value1, value2, "patientId");
            return (Criteria) this;
        }

        public Criteria andPatientIdNotBetween(Integer value1, Integer value2) {
            addCriterion("patientId not between", value1, value2, "patientId");
            return (Criteria) this;
        }

        public Criteria andNurseIsNull() {
            addCriterion("nurse is null");
            return (Criteria) this;
        }

        public Criteria andNurseIsNotNull() {
            addCriterion("nurse is not null");
            return (Criteria) this;
        }

        public Criteria andNurseEqualTo(String value) {
            addCriterion("nurse =", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseNotEqualTo(String value) {
            addCriterion("nurse <>", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseGreaterThan(String value) {
            addCriterion("nurse >", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseGreaterThanOrEqualTo(String value) {
            addCriterion("nurse >=", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseLessThan(String value) {
            addCriterion("nurse <", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseLessThanOrEqualTo(String value) {
            addCriterion("nurse <=", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseLike(String value) {
            addCriterion("nurse like", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseNotLike(String value) {
            addCriterion("nurse not like", value, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseIn(List<String> values) {
            addCriterion("nurse in", values, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseNotIn(List<String> values) {
            addCriterion("nurse not in", values, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseBetween(String value1, String value2) {
            addCriterion("nurse between", value1, value2, "nurse");
            return (Criteria) this;
        }

        public Criteria andNurseNotBetween(String value1, String value2) {
            addCriterion("nurse not between", value1, value2, "nurse");
            return (Criteria) this;
        }

        public Criteria andBedNoIsNull() {
            addCriterion("bedNo is null");
            return (Criteria) this;
        }

        public Criteria andBedNoIsNotNull() {
            addCriterion("bedNo is not null");
            return (Criteria) this;
        }

        public Criteria andBedNoEqualTo(String value) {
            addCriterion("bedNo =", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoNotEqualTo(String value) {
            addCriterion("bedNo <>", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoGreaterThan(String value) {
            addCriterion("bedNo >", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoGreaterThanOrEqualTo(String value) {
            addCriterion("bedNo >=", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoLessThan(String value) {
            addCriterion("bedNo <", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoLessThanOrEqualTo(String value) {
            addCriterion("bedNo <=", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoLike(String value) {
            addCriterion("bedNo like", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoNotLike(String value) {
            addCriterion("bedNo not like", value, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoIn(List<String> values) {
            addCriterion("bedNo in", values, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoNotIn(List<String> values) {
            addCriterion("bedNo not in", values, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoBetween(String value1, String value2) {
            addCriterion("bedNo between", value1, value2, "bedNo");
            return (Criteria) this;
        }

        public Criteria andBedNoNotBetween(String value1, String value2) {
            addCriterion("bedNo not between", value1, value2, "bedNo");
            return (Criteria) this;
        }

        public Criteria andDepositIsNull() {
            addCriterion("deposit is null");
            return (Criteria) this;
        }

        public Criteria andDepositIsNotNull() {
            addCriterion("deposit is not null");
            return (Criteria) this;
        }

        public Criteria andDepositEqualTo(Double value) {
            addCriterion("deposit =", value, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositNotEqualTo(Double value) {
            addCriterion("deposit <>", value, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositGreaterThan(Double value) {
            addCriterion("deposit >", value, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositGreaterThanOrEqualTo(Double value) {
            addCriterion("deposit >=", value, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositLessThan(Double value) {
            addCriterion("deposit <", value, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositLessThanOrEqualTo(Double value) {
            addCriterion("deposit <=", value, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositIn(List<Double> values) {
            addCriterion("deposit in", values, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositNotIn(List<Double> values) {
            addCriterion("deposit not in", values, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositBetween(Double value1, Double value2) {
            addCriterion("deposit between", value1, value2, "deposit");
            return (Criteria) this;
        }

        public Criteria andDepositNotBetween(Double value1, Double value2) {
            addCriterion("deposit not between", value1, value2, "deposit");
            return (Criteria) this;
        }

        public Criteria andIllneseDescIsNull() {
            addCriterion("illneseDesc is null");
            return (Criteria) this;
        }

        public Criteria andIllneseDescIsNotNull() {
            addCriterion("illneseDesc is not null");
            return (Criteria) this;
        }

        public Criteria andIllneseDescEqualTo(String value) {
            addCriterion("illneseDesc =", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescNotEqualTo(String value) {
            addCriterion("illneseDesc <>", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescGreaterThan(String value) {
            addCriterion("illneseDesc >", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescGreaterThanOrEqualTo(String value) {
            addCriterion("illneseDesc >=", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescLessThan(String value) {
            addCriterion("illneseDesc <", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescLessThanOrEqualTo(String value) {
            addCriterion("illneseDesc <=", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescLike(String value) {
            addCriterion("illneseDesc like", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescNotLike(String value) {
            addCriterion("illneseDesc not like", value, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescIn(List<String> values) {
            addCriterion("illneseDesc in", values, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescNotIn(List<String> values) {
            addCriterion("illneseDesc not in", values, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescBetween(String value1, String value2) {
            addCriterion("illneseDesc between", value1, value2, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andIllneseDescNotBetween(String value1, String value2) {
            addCriterion("illneseDesc not between", value1, value2, "illneseDesc");
            return (Criteria) this;
        }

        public Criteria andPaymentIsNull() {
            addCriterion("payment is null");
            return (Criteria) this;
        }

        public Criteria andPaymentIsNotNull() {
            addCriterion("payment is not null");
            return (Criteria) this;
        }

        public Criteria andPaymentEqualTo(Integer value) {
            addCriterion("payment =", value, "payment");
            return (Criteria) this;
        }

        public Criteria andPaymentNotEqualTo(Integer value) {
            addCriterion("payment <>", value, "payment");
            return (Criteria) this;
        }

        public Criteria andPaymentGreaterThan(Integer value) {
            addCriterion("payment >", value, "payment");
            return (Criteria) this;
        }

        public Criteria andPaymentGreaterThanOrEqualTo(Integer value) {
            addCriterion("payment >=", value, "payment");
            return (Criteria) this;
        }

        public Criteria andPaymentLessThan(Integer value) {
            addCriterion("payment <", value, "payment");
            return (Criteria) this;
        }

        public Criteria andPaymentLessThanOrEqualTo(Integer value) {
            addCriterion("payment <=", value, "payment");
            return (Criteria) this;
        }

        public Criteria andPaymentIn(List<Integer> values) {
            addCriterion("payment in", values, "payment");
            return (Criteria) this;
        }

        public Criteria andPaymentNotIn(List<Integer> values) {
            addCriterion("payment not in", values, "payment");
            return (Criteria) this;
        }

        public Criteria andPaymentBetween(Integer value1, Integer value2) {
            addCriterion("payment between", value1, value2, "payment");
            return (Criteria) this;
        }

        public Criteria andPaymentNotBetween(Integer value1, Integer value2) {
            addCriterion("payment not between", value1, value2, "payment");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Integer value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Integer value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Integer value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Integer value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Integer value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Integer> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Integer> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Integer value1, Integer value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Integer value1, Integer value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}